<?php
/*
 * Created on 05.01.2006
 *
 */

/**
 * Creates a link to a help page
 * attributes:
 * page: The help page to show
 */
class xics_helplinkHandler
{

    var $value;
    var $optiontext;
    var $selected;

    function startElement (& $sender, $attrs)
    {
        if (!$attrs['page'])
        {
            die ("xics:helplink must have attribute page");
        }
        $sender->appendCode('$out->write(helplink('.$attrs['page'].($attrs['anquor']?','.$attrs['anquor']:'').'));'."\n");
    }
    
    function endElement (& $sender)
    {
    }

} 

?>